"do...while" Statement - Not Supported

This section describes why 'do...while' statement is not supported in H language.

"do...while" statements are not supported in H language, because of two reasons.

1. "do...while" statements can be easily replaced by $while statements.

2. $while statements have better readability than "do...while" statements.

Below is syntax of a $while loop that works like "do...while" loop:

$while $true, (
   ...
   $if !condition, break;
);

Table of Contents

 About This Book

 Introduction of H Language

 Syntax

 Data Types

 Variables

 Expressions

Statements

 What Is an Statement

 Expression Statement

 Assignment Statement

 Conditional "if" Statement

 Conditional "elseif" Statement

 Conditional "else" Statement

 Group Statement

 "while" Loop Statement

 "for" Loop Statement

 Loop "break" Statement

 Loop "next" Statement

 "switch" Statement - Not Supported

"do...while" Statement - Not Supported

 "boolean" Data Type

 "integer" Data Type

 "string" Data Type

 "real" Data Type

 "array" Data Type

 Source Code Packages

 Classes and Objects

 Object Oriented Programming

 Inheritance - Object Attachments

 Encapsulation - Private Members

 References

 Full Version in PDF/ePUB