|
So Rockbomb and I got into an argument about programming languages that accept or recognize spaces. He tried to prove to me that there was a programming language that recognized spaces, I explicitly stated that there was not. Is there?
Rules:
Programming languages only; HTML, PHP, etc. don't count (they're scripting languages).
Line breaks do not count (Like BASIC, and Visual Basic).
Strings do not count; so "Hello, world!" is not valid.
RB suggested LISP (Lots of Irritating Superfluous Parentheses, pun), so I guess that is one.
How many can you find?
|
|
|
|
≡
|
2010 May 11 at 07:16 UTC
|
|
|
SRAW
Rocket Man
![](./avatars/sdaw.png)
2007 Nov 6 • 2525
601 ₧
|
|
|
|
|
≡
|
2010 May 11 at 07:45 UTC
— Ed. 2010 May 11 at 07:50 UTC
|
|
|
|
(mapcar #'+ '(1 2 3 4 5) '(10 20 30 40 50))
Represents a list, no commas.
|
|
|
|
≡
|
2010 May 11 at 07:50 UTC
|
|
|
SRAW
Rocket Man
![](./avatars/sdaw.png)
2007 Nov 6 • 2525
601 ₧
|
sprinkles said: (mapcar #'+ '(1 2 3 4 5) '(10 20 30 40 50))
Represents a list, no commas.
... who are you telling that to?
|
|
|
|
≡
|
2010 May 11 at 07:54 UTC
|
|
|
Down Rodeo
Cap'n Moth of the Firehouse
![](./avatars/down_rodeo.png)
![Find the Hole II Participation Medal Find the Hole II Participation Medal](https://superjer.com/forum/awards/fth2.gif)
2007 Oct 19 • 5486
57,583 ₧
|
When you ask your question what exactly do you mean? Like, recognise? I don't understand.
|
|
|
|
≡
|
2010 May 11 at 14:37 UTC
|
|
|
|
Lets loom at an example:
C# code public void Main() { privet IntPtr _programHandle; privet ArrayList _songs; public IntPtr ProgramHandle { get { throw new AccessDeniedException();} set { _programHandle = value;} } public ArrayList Songs { get {return _songs;} set { _songs = value;} } }
Now, to use proper structure I added spaces (or tabs) before (or it could be after) the appropriate lines. C# doesn't care about that; whether you have 10, 20, 30, or no spaces before or after lines it compiles the same.
So that:
code public static void Nothing()
is the same as:
code public static void Nothing ( )
You get it?
|
|
|
|
≡
|
2010 May 11 at 19:54 UTC
|
|
|
Down Rodeo
Cap'n Moth of the Firehouse
![](./avatars/down_rodeo.png)
![Find the Hole II Participation Medal Find the Hole II Participation Medal](https://superjer.com/forum/awards/fth2.gif)
2007 Oct 19 • 5486
57,583 ₧
|
Privet like the hedge :)
I'd agree with SRAW on Python and Haskell; they both use whitespace to delineate blocks of code, like functions or class bodies or whatever. You can do this with tabs but can also do it with spaces. Beyond that... APL and J, maybe? I'm not sure as I've not properly used them.
|
|
|
|
≡
|
2010 May 11 at 20:22 UTC
|
|
|
|
|
|
|
|
≡
|
2010 May 11 at 20:37 UTC
|
|
|
|
I believe Providex recognizes spaces, but I could be wrong , as I often am.
|
|
|
|
≡
|
2010 May 11 at 21:48 UTC
|
|
|
|
sprinkles said: Programming languages only; HTML, PHP, etc. don't count (they're scripting languages).
PHP is a programming language. HTML is a markup language.
I'm not sure what you meant by "scripting language" but I'm guessing you meant "markup."
|
|
|
|
≡
|
2010 May 12 at 00:00 UTC
|
|
|
Rockbomb
Dog fucker (but in a good way now)
![](./avatars/rockbomb.gif)
2009 Nov 14 • 2045
|
SRAW said:
Down Rodeo said: Privet like the hedge :)
I'd agree with SRAW on Python and Haskell; they both use whitespace to delineate blocks of code, like functions or class bodies or whatever. You can do this with tabs but can also do it with spaces.
superjer said:
PHP is a programming language.
Ahhh, this thread makes me happy
|
|
|
|
≡
|
2010 May 12 at 00:04 UTC
— Ed. 2010 May 12 at 00:05 UTC
|
|
|
SRAW
Rocket Man
![](./avatars/sdaw.png)
2007 Nov 6 • 2525
601 ₧
|
Rockbomb said: SRAW said:
Down Rodeo said: Privet like the hedge :)
I'd agree with SRAW on Python and Haskell; they both use whitespace to delineate blocks of code, like functions or class bodies or whatever. You can do this with tabs but can also do it with spaces.
superjer said:
PHP is a programming language.
Ahhh, this thread makes me happy ![](http://www.superjer.com/forum/moticons/pleased.gif)
Just a question, do you know sprinkles personally? cause you guys act as if you do, but apparently you guys are in different continents.
|
|
|
|
≡
|
2010 May 12 at 10:51 UTC
|
|
|
Down Rodeo
Cap'n Moth of the Firehouse
![](./avatars/down_rodeo.png)
![Find the Hole II Participation Medal Find the Hole II Participation Medal](https://superjer.com/forum/awards/fth2.gif)
2007 Oct 19 • 5486
57,583 ₧
|
As far as I'm aware they're actually in the same state, no?
|
|
|
|
≡
|
2010 May 12 at 11:19 UTC
|
|
|
|
We actually live 30 minutes from each other.
superjer said: sprinkles said: Programming languages only; HTML, PHP, etc. don't count (they're scripting languages).
PHP is a programming language. HTML is a markup language.
I'm not sure what you meant by "scripting language" but I'm guessing you meant "markup."
I meant languages that you do not have to compile for it to run like batch, VBscript, HTML, etc.
|
|
|
|
≡
|
2010 May 12 at 12:27 UTC
— Ed. 2010 May 12 at 12:29 UTC
|
|
|
|
Well you don't have to compile C# or C or C++ or most any languages to run them.
And you can compile PHP, VBScript and basically all other programming languages.
So I don't really think there's a distinction.
|
|
|
|
≡
|
2010 May 12 at 21:15 UTC
|
|
|
|
I've been waiting, and that still does not make sense to me.
|
|
|
|
≡
|
2010 May 12 at 22:21 UTC
|
|
|
protobuf
The artist formerly known as RibsRizeRainbmo
![](./avatars/protobuf.png)
2010 Apr 15 • 14
|
Another vote for Python's significant whitespace
|
|
|
|
≡
|
2010 May 13 at 03:29 UTC
|
|
|
protobuf
The artist formerly known as RibsRizeRainbmo
![](./avatars/protobuf.png)
2010 Apr 15 • 14
|
You definitely don't want any spaces in your Brainfuck code
|
|
|
|
≡
|
2010 May 13 at 03:31 UTC
|
|
|
|
You may not want them but I don't think they'll have any effect on anything either.
|
|
|
|
≡
|
2010 May 13 at 07:51 UTC
|
|
|
|
sprinkles said: I've been waiting, and that still does not make sense to me. ![](http://www.superjer.com/forum/moticons/crestfallen.gif)
Waiting? For?
|
|
|
|
≡
|
2010 May 13 at 07:51 UTC
|
|
|
|
Waiting for it to magically make sense.
|
|
|
|
≡
|
2010 May 13 at 14:50 UTC
|
|
|
Down Rodeo
Cap'n Moth of the Firehouse
![](./avatars/down_rodeo.png)
![Find the Hole II Participation Medal Find the Hole II Participation Medal](https://superjer.com/forum/awards/fth2.gif)
2007 Oct 19 • 5486
57,583 ₧
|
Although you can make a distinction between compiled and interpreted languages most of them can be one or the other. For instance, Python is 'normally' an interpreted language. However, since a couple of years ago, .py files can be compiled into .pyc files.
|
|
|
|
≡
|
2010 May 13 at 15:31 UTC
|
|
|
Page [1]
|