[web-devel] Fwd: [hamlet] Clearer error for mixed spaces / tabs nesting in cassius (#2)

Michael Snoyman michael at snoyman.com
Fri Jun 3 13:57:21 CEST 2011

I don't have a strong opinion on tabs/spaces for Hamlet and Cassius
(the discussion isn't relevant for Julius or Lucius). So I thought I'd
just throw this to the web-devel list: what do you guys think?

Currently, 1 tab = 4 spaces for indentation purposes. I personally
never use hard tabs for Haskell, so the question doesn't affect me.


---------- Forwarded message ----------
From: Shimuuar <reply+i-326148-baa0eff244395e870f290821538bf79d83ec1190 at reply.github.com>
Date: Wed, Jun 1, 2011 at 7:33 PM
Subject: Re: [hamlet] Clearer error for mixed spaces / tabs nesting in
cassius (#2)
To: michael at snoyman.com

I'd vote to ban tabs. They may change meaning of program silently. If
your editor and hamlet/cassius have different tab width it may lead
either to error or it could be parsed not as you expected. Second case
is real. I encountered it.

IMHO mixing tabs and significant indentation is generally bad idea™

Reply to this email directly or view it on GitHub:

More information about the web-devel mailing list