Ive searched Google and Wikipedia and the only links I get send me right back here. So, /prog/, what is FIOC and why does the rest of the internet not know of its existence?
Name:
>2009-07-16 1:31
Ehh, I think it has to do with Python.
Name:
Anonymous2009-07-16 1:36
FIOC = Forced Indentation Of [the] Code
In python you are forced to indent your code to form loops and functions.
Here in /prog/ we hate anything without ((parentheses)) so we make fun of languages like python and c++ and call them different names like FIOC and Sepples.
Name:
!Girugamesh7eNf2009-07-16 13:07
>>3
I feel like a moron now for asking my professor. lol
>>4
Don't worry, I'll do that too as soon as my summer break is over. This is an excellent trolling technique, and, with some /prog/-riders in the lecture hall, I am bound to make an impact!
Name:
Anonymous2009-07-16 13:20
>>3
This maneth knoweth knot of whicheth he spaketh
>>3 Did you mean:Here in /prog/ I'm butthurt about the rest of the trolls making fun of the only two languages I know because they favour the functional languages I can't properly understand?
Name:
Anonymous2009-07-16 14:50
>>6
There are only 3 posters here constantly trolling each other. Therefore you will fail in your quest.
THE HASKELL INDENTATION OF CODE
The reader may have been wondering how it is that Haskell programs avoid the use of semicolons, or some other kind of terminator, to mark the end of equations, declarations, etc. For example, consider this let expression from the last section:
let y = a*b
f x = (x+y)/y
in f c + f d
How does the parser know not to parse this as:
let y = a*b f
x = (x+y)/y
in f c + f d
?
The answer is that Haskell uses a two-dimensional syntax called layout that essentially relies on declarations being "lined up in columns." In the above example, note that y and f begin in the same column. The rules for layout are spelled out in detail in the Report (§2.7, §B.3), but in practice, use of layout is rather intuitive.
Name:
Anonymous2009-07-17 11:35
>>20
Don't worry guise its not forced you can curly brace it, too! The best of statement separators combined into one awesome language.