Programming Languages

Programming Languages

sprinkles

Chrome Whore
2009 Sep 6 • 2547
10 ₧
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 00:16 PDT
SRAW
Rocket Man

2007 Nov 6 • 2525
601 ₧
sprinkles said:
He tried to prove to me that there was a programming language that recognized spaces


So what was his proof?

Edit: ... I didn't read the small text
Anyway...
http://en.wikipedia.org/wiki/Haskell_(programming_language)
http://en.wikipedia.org/wiki/Python_(programming_language)
http://en.wikipedia.org/wiki/Whitespace_(programming_language)



Free Steam Games
 
 
 
2010 May 11 at 00:45 PDT — Ed. 2010 May 11 at 00:50 PDT
sprinkles

Chrome Whore
2009 Sep 6 • 2547
10 ₧
(mapcar #'+ '(1 2 3 4 5) '(10 20 30 40 50))

Represents a list, no commas.
 
 
 
2010 May 11 at 00:50 PDT
SRAW
Rocket Man

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?
Free Steam Games
 
 
 
2010 May 11 at 00:54 PDT
Down Rodeo
Cap'n Moth of the Firehouse

Find the Hole II Participation Medal
2007 Oct 19 • 5486
57,583 ₧
 
 
 
2010 May 11 at 07:37 PDT
sprinkles

Chrome Whore
2009 Sep 6 • 2547
10 ₧
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 12:54 PDT
Down Rodeo
Cap'n Moth of the Firehouse

Find the Hole II Participation Medal
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 13:22 PDT
sprinkles

Chrome Whore
2009 Sep 6 • 2547
10 ₧
You forgot "loom."
 
 
 
2010 May 11 at 13:37 PDT
phoenix_r

2009 May 13 • 905
17 ₧
I believe Providex recognizes spaces, but I could be wrong , as I often am.
BOO
 
 
 
2010 May 11 at 14:48 PDT
SuperJer
Websiteman

2005 Mar 20 • 6629
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 11 at 17:00 PDT
Rockbomb
Dog fucker (but in a good way now)

2009 Nov 13 • 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 11 at 17:04 PDT — Ed. 2010 May 11 at 17:05 PDT
SRAW
Rocket Man

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


Just a question, do you know sprinkles personally? cause you guys act as if you do, but apparently you guys are in different continents.
Free Steam Games
 
 
 
2010 May 12 at 03:51 PDT
Down Rodeo
Cap'n Moth of the Firehouse

Find the Hole II Participation Medal
2007 Oct 19 • 5486
57,583 ₧
 
 
 
2010 May 12 at 04:19 PDT
sprinkles

Chrome Whore
2009 Sep 6 • 2547
10 ₧
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 05:27 PDT — Ed. 2010 May 12 at 05:29 PDT
SuperJer
Websiteman

2005 Mar 20 • 6629
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 14:15 PDT
sprinkles

Chrome Whore
2009 Sep 6 • 2547
10 ₧
I've been waiting, and that still does not make sense to me.
 
 
 
2010 May 12 at 15:21 PDT
protobuf
The artist formerly known as RibsRizeRainbmo

2010 Apr 15 • 14
Another vote for Python's significant whitespace
 
 
 
2010 May 12 at 20:29 PDT
protobuf
The artist formerly known as RibsRizeRainbmo

2010 Apr 15 • 14
You definitely don't want any spaces in your Brainfuck code
 
 
 
2010 May 12 at 20:31 PDT
SuperJer
Websiteman

2005 Mar 20 • 6629
You may not want them but I don't think they'll have any effect on anything either.
 
 
 
2010 May 13 at 00:51 PDT
SuperJer
Websiteman

2005 Mar 20 • 6629
sprinkles said:
I've been waiting, and that still does not make sense to me.

Waiting? For?
 
 
 
2010 May 13 at 00:51 PDT
sprinkles

Chrome Whore
2009 Sep 6 • 2547
10 ₧
Waiting for it to magically make sense.
 
 
 
2010 May 13 at 07:50 PDT
Down Rodeo
Cap'n Moth of the Firehouse

Find the Hole II Participation Medal
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 08:31 PDT
Page [1]