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

Megol's Avatar
Join Date: May 2014
Location: inside the emulator
Posts: 209
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:

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

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

for i=0..100 by 2

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