View Single Post
Old 25 August 2015, 09:29   #307
Megol
Registered User

Megol's Avatar
 
Join Date: May 2014
Location: inside the emulator
Posts: 254
People that complain about syntactic indentation seem to never have used a language using it, often making ridiculous assertions while ignoring the problems with their favorite language (most often C family languages).

With that said and disregarding the visual clarity of syntactic indentation I personally think block based syntax is a better choice for readability. Examples from my toy project:

Code:
if x=123
  ...          -- actually a valid statement :)
end

if x=123 then ... -- short version without block

for i=0..100 by 2
  ...
end

for i=0..100 by 2 do ... -- short version
Megol is offline  
 
Page generated in 0.05119 seconds with 9 queries