LET: Difference between revisions

From QB64 Phoenix Edition Wiki
Jump to navigation Jump to search
(Created page with "The LET is a useless statement designed by cavemen when they started programming. {{PageSyntax}} : '''[LET]''' {{Parameter|variable}} = {{Parameter|expression}} {{PageDescription}} * {{InlineCode}}LET a = 12{{InlineCodeEnd}} is the same as {{InlineCode}}a = 12{{InlineCodeEnd}}, but wastes 4 extra bytes of program space. ''Notes:'' LET is '''optional''', it's the only keyword where the '''entire keyword''' is optional :-) {{PageSeeAlso}} * Cavemen * [...")
 
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
The [[LET]] is a useless statement designed by [[cavemen]] when they started programming.
[[LET]] is a needless statement today. It was designed for the very early BASIC dialects to assign a value to a variable.




{{PageSyntax}}
{{PageSyntax}}
: '''[LET]''' {{Parameter|variable}} = {{Parameter|expression}}
: [[LET]] {{Parameter|variable}} = {{Parameter|expression}}




{{PageDescription}}
{{PageDescription}}
* {{InlineCode}}LET a = 12{{InlineCodeEnd}} is the same as {{InlineCode}}a = 12{{InlineCodeEnd}}, but wastes 4 extra bytes of program space.  
* {{InlineCode}}{{Cl|LET}} a = 12{{InlineCodeEnd}} is the very same as {{InlineCode}}a = 12{{InlineCodeEnd}}, but wastes 4 extra bytes of program space.
* That said, [[LET]] is '''optional''', it's the only keyword where the '''entire keyword''' is optional.😀


''Notes:'' LET is '''optional''', it's the only keyword where the '''entire keyword''' is optional :-)


 
{{PageSeeAlso}}
{{PageSeeAlso}}  
* [[Cavemen]]
* [[Variable]]
* [[Variable]]




{{PageNavigation}}
{{PageNavigation}}

Latest revision as of 01:56, 23 January 2023

LET is a needless statement today. It was designed for the very early BASIC dialects to assign a value to a variable.


Syntax

LET variable = expression


Description

  • LET a = 12 is the very same as a = 12, but wastes 4 extra bytes of program space.
  • That said, LET is optional, it's the only keyword where the entire keyword is optional.😀


See also



Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link