User talk:Mwn3d: Difference between revisions

→‎UnderBot and whitespace: Not entirely, but it's clever about it.
(→‎UnderBot and whitespace: Not entirely, but it's clever about it.)
Line 21:
With respect to http://rosettacode.org/mw/index.php?title=Select_from_Array&diff=67932&oldid=67929: yes, UnderBot strips whitespace like that. So you needn't bother doing it yourself. —[[User:Underscore|Underscore]] ([[User talk:Underscore|Talk]]) 15:40, 19 November 2009 (UTC)
:Does it leave Python and Haskell whitespace? I think both of those depend on it. --[[User:Mwn3d|Mwn3d]] 15:58, 19 November 2009 (UTC)
<blockquote><blockquote>Not entirely, but UnderBot preserves relative indentation, which is all that whitespace-sensitive languages are sensitive to. Actually, both Haskell and Python further require that top-level definitions begin in the first column, so when UnderBot changes
<lang haskell> foo = fie + foe
where fie = 2
foe = 3</lang>
to
<lang haskell>foo = fie + foe
where fie = 2
foe = 3</lang>
, it's translating a technically illegal program into a legal one. —[[User:Underscore|Underscore]] ([[User talk:Underscore|Talk]]) 17:58, 19 November 2009 (UTC)</blockquote></blockquote>
845

edits