# Ruby Whitespace Semantics

**URL:** <https://www.ruby-forum.com/t/ruby-whitespace-semantics/54234>\
**Category:** Ruby\
**Created:** [February 27, 2006, 8:45am UTC](https://www.ruby-forum.com/t/ruby-whitespace-semantics/54234 "2006-02-27T08:45:58Z")\
**Posts on this page:** 1\
**Page:** 2

<div class="post-metadata">

**Author:** ![Almann\_G](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ac8455/32.png) [@Almann\_G](https://www.ruby-forum.com/u/Almann_G)\
**Post date:** [February 28, 2006, 4:36am UTC](https://www.ruby-forum.com/t/ruby-whitespace-semantics/54234/21 "2006-02-28T04:36:20Z")

</div>

[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote in message  
news:removed\_email\_address@domain.invalid…  
Quoting removed\_email\_address@domain.invalid:

> > Ah. I thought a semicolon terminated a statement.

> It does; it’s just that the current Ruby grammar permits multiple  
> statements within the same set of parenthesis (separated by  
> semicolons or newlines).

I guess a = ( 4 ; + 5 ) is not so different from C’s a = ( 4 , + 5 )

Live and learn! 🙂

[Previous page](https://www.ruby-forum.com/t/ruby-whitespace-semantics/54234.md?page=1)
