Which other programming languages apart from Python and predecessor are out there using indentation to define code blocks?Why are there so many programming languages?How are programming languages and foundations of mathematics related?Are there peer-reviewed papers studying the pros and cons of functional programming?Are there specific rules for programming languages applicable to Quantum Computers?Why are Python 2 and 3 so incompatible with each other?Why are some programming languages Turing complete but lack some abilities of other languages?Are there programs that can 'translate' source code between any two languages?Is there a correspondence between the syntaxes and the type systems of programming languages?In programming languages, generally we do not distinguish relations and functions. Is there a better way to deal with these two concepts?Are there any programming languages which support user defined control structures?
Is a vertical stabiliser needed for straight line flight in a glider?
Is ‘despite that’ right?
How to handle DM constantly stealing everything from sleeping characters?
What's the "magic similar to the Knock spell" referenced in the Dungeon of the Mad Mage adventure?
Why do Thanos' punches not kill Captain America or at least cause vital wounds?
Watching the game, having a puzzle
How to evaluate sum with one million summands?
cropping a message using array splits
Two researchers want to work on the same extension to my paper. Who to help?
Remove color cast in darktable?
Is there any evidence to support the claim that the United States was "suckered into WW1" by Zionists, made by Benjamin Freedman in his 1961 speech
Extending Kan fibrations, without using minimal fibrations
Why do unstable nuclei form?
How to make a language evolve quickly?
Why is it wrong to *implement* myself a known, published, widely believed to be secure crypto algorithm?
Why are parallelograms defined as quadrilaterals? What term would encompass polygons with greater than two parallel pairs?
Is it nonsense to say B -> [A -> B]?
Pre-1993 comic in which Wolverine's claws were turned to rubber?
Removing all characters except digits from clipboard
Is it a good idea to copy a trader when investing?
How did Thanos not realise this had happened at the end of Endgame?
How is CoreiX like Corei5, i7 is related to Haswell, Ivy Bridge?
Can 'sudo apt-get remove [write]' destroy my Ubuntu?
What does formal training in a field mean?
Which other programming languages apart from Python and predecessor are out there using indentation to define code blocks?
Why are there so many programming languages?How are programming languages and foundations of mathematics related?Are there peer-reviewed papers studying the pros and cons of functional programming?Are there specific rules for programming languages applicable to Quantum Computers?Why are Python 2 and 3 so incompatible with each other?Why are some programming languages Turing complete but lack some abilities of other languages?Are there programs that can 'translate' source code between any two languages?Is there a correspondence between the syntaxes and the type systems of programming languages?In programming languages, generally we do not distinguish relations and functions. Is there a better way to deal with these two concepts?Are there any programming languages which support user defined control structures?
$begingroup$
Python quite famously uses indentation to syntactically define blocks of code. (See Compound statements in the Python Language Reference). After years of using Python I'm still intrigued by and very fond of this syntax feature.
But I wonder: Apart from Python and its "predecessor"(*) language ABC which other programming languages are out there using indentation for definition of code blocks? Code blocks means here "multiple statements which in some way are treated as one component".
I'm particularly interested in practical programming languages, but esoteric languages might be worth mentioning as well.
(*): "Predecessor" is my choice of word in default of knowing here a better one. Guido van Rossum, the creator of Python, described the relationship between Python and ABC regarding indentation in an interview like this: "The choice of indentation for grouping was not a novel concept in Python; I inherited this from ABC."
programming-languages python syntax
New contributor
$endgroup$
add a comment |
$begingroup$
Python quite famously uses indentation to syntactically define blocks of code. (See Compound statements in the Python Language Reference). After years of using Python I'm still intrigued by and very fond of this syntax feature.
But I wonder: Apart from Python and its "predecessor"(*) language ABC which other programming languages are out there using indentation for definition of code blocks? Code blocks means here "multiple statements which in some way are treated as one component".
I'm particularly interested in practical programming languages, but esoteric languages might be worth mentioning as well.
(*): "Predecessor" is my choice of word in default of knowing here a better one. Guido van Rossum, the creator of Python, described the relationship between Python and ABC regarding indentation in an interview like this: "The choice of indentation for grouping was not a novel concept in Python; I inherited this from ABC."
programming-languages python syntax
New contributor
$endgroup$
3
$begingroup$
I don't think "please give me a list of programming languages with feature X" is a computer science question.
$endgroup$
– David Richerby
5 hours ago
$begingroup$
Honestly, I would just replace the word "predecessor" with "ABC." You only mean the one specific language by it, and that ABC inspired Python's whitespace rules is probably not widely known.
$endgroup$
– jpmc26
5 hours ago
$begingroup$
Why, there's the Whitespace language itself that requires proper indentation for it's core method of expression.
$endgroup$
– penguin359
2 hours ago
$begingroup$
Long-form YAML is probably worth mentioning even though it's not a programming language in the strictest sense, as it's probably one of the next most likely languages with this feature for someone to encounter after Python.
$endgroup$
– Austin Hemmelgarn
1 hour ago
add a comment |
$begingroup$
Python quite famously uses indentation to syntactically define blocks of code. (See Compound statements in the Python Language Reference). After years of using Python I'm still intrigued by and very fond of this syntax feature.
But I wonder: Apart from Python and its "predecessor"(*) language ABC which other programming languages are out there using indentation for definition of code blocks? Code blocks means here "multiple statements which in some way are treated as one component".
I'm particularly interested in practical programming languages, but esoteric languages might be worth mentioning as well.
(*): "Predecessor" is my choice of word in default of knowing here a better one. Guido van Rossum, the creator of Python, described the relationship between Python and ABC regarding indentation in an interview like this: "The choice of indentation for grouping was not a novel concept in Python; I inherited this from ABC."
programming-languages python syntax
New contributor
$endgroup$
Python quite famously uses indentation to syntactically define blocks of code. (See Compound statements in the Python Language Reference). After years of using Python I'm still intrigued by and very fond of this syntax feature.
But I wonder: Apart from Python and its "predecessor"(*) language ABC which other programming languages are out there using indentation for definition of code blocks? Code blocks means here "multiple statements which in some way are treated as one component".
I'm particularly interested in practical programming languages, but esoteric languages might be worth mentioning as well.
(*): "Predecessor" is my choice of word in default of knowing here a better one. Guido van Rossum, the creator of Python, described the relationship between Python and ABC regarding indentation in an interview like this: "The choice of indentation for grouping was not a novel concept in Python; I inherited this from ABC."
programming-languages python syntax
programming-languages python syntax
New contributor
New contributor
New contributor
asked 9 hours ago
halloleohalloleo
1301
1301
New contributor
New contributor
3
$begingroup$
I don't think "please give me a list of programming languages with feature X" is a computer science question.
$endgroup$
– David Richerby
5 hours ago
$begingroup$
Honestly, I would just replace the word "predecessor" with "ABC." You only mean the one specific language by it, and that ABC inspired Python's whitespace rules is probably not widely known.
$endgroup$
– jpmc26
5 hours ago
$begingroup$
Why, there's the Whitespace language itself that requires proper indentation for it's core method of expression.
$endgroup$
– penguin359
2 hours ago
$begingroup$
Long-form YAML is probably worth mentioning even though it's not a programming language in the strictest sense, as it's probably one of the next most likely languages with this feature for someone to encounter after Python.
$endgroup$
– Austin Hemmelgarn
1 hour ago
add a comment |
3
$begingroup$
I don't think "please give me a list of programming languages with feature X" is a computer science question.
$endgroup$
– David Richerby
5 hours ago
$begingroup$
Honestly, I would just replace the word "predecessor" with "ABC." You only mean the one specific language by it, and that ABC inspired Python's whitespace rules is probably not widely known.
$endgroup$
– jpmc26
5 hours ago
$begingroup$
Why, there's the Whitespace language itself that requires proper indentation for it's core method of expression.
$endgroup$
– penguin359
2 hours ago
$begingroup$
Long-form YAML is probably worth mentioning even though it's not a programming language in the strictest sense, as it's probably one of the next most likely languages with this feature for someone to encounter after Python.
$endgroup$
– Austin Hemmelgarn
1 hour ago
3
3
$begingroup$
I don't think "please give me a list of programming languages with feature X" is a computer science question.
$endgroup$
– David Richerby
5 hours ago
$begingroup$
I don't think "please give me a list of programming languages with feature X" is a computer science question.
$endgroup$
– David Richerby
5 hours ago
$begingroup$
Honestly, I would just replace the word "predecessor" with "ABC." You only mean the one specific language by it, and that ABC inspired Python's whitespace rules is probably not widely known.
$endgroup$
– jpmc26
5 hours ago
$begingroup$
Honestly, I would just replace the word "predecessor" with "ABC." You only mean the one specific language by it, and that ABC inspired Python's whitespace rules is probably not widely known.
$endgroup$
– jpmc26
5 hours ago
$begingroup$
Why, there's the Whitespace language itself that requires proper indentation for it's core method of expression.
$endgroup$
– penguin359
2 hours ago
$begingroup$
Why, there's the Whitespace language itself that requires proper indentation for it's core method of expression.
$endgroup$
– penguin359
2 hours ago
$begingroup$
Long-form YAML is probably worth mentioning even though it's not a programming language in the strictest sense, as it's probably one of the next most likely languages with this feature for someone to encounter after Python.
$endgroup$
– Austin Hemmelgarn
1 hour ago
$begingroup$
Long-form YAML is probably worth mentioning even though it's not a programming language in the strictest sense, as it's probably one of the next most likely languages with this feature for someone to encounter after Python.
$endgroup$
– Austin Hemmelgarn
1 hour ago
add a comment |
2 Answers
2
active
oldest
votes
$begingroup$
Wikipedia has an extensive list of languages that use the off-side rule1:
- ABC
- Boo
- BuddyScript
- Cobra
- CoffeeScript
- Converge
- Curry
- Elixir (
, do:
blocks)
- Elm
- F# (if
#light "off"
is not specified)
- Genie
- Haskell (only for
where
,let
,do
, orcase ... of
clauses when braces are omitted)
- Inform 7
- ISWIM, the abstract language that introduced the rule
- LiveScript
- Miranda
- Nemerle
- Nim
- occam
- PROMAL
- Python
- Scheme, when using e.g. SRFI 119
- Spin
- XL
1: I've never heard this term before myself.
$endgroup$
add a comment |
$begingroup$
There are: Elm, Haskell, its predecessor Miranda and its predecessor ISWIM,
YAML where spaces are crucial for syntax and tabs are forbidden, OCCAM, Coffee script and Cokescript both are language to language compilers with JavaScript as target and esoteric Whitespaces.
There is also Agda - interactive theorem prover, which is probably not what you had in mind, but its lexer is very sensitive to white-space.
Makefile, which gathers targets with tab-based intends.
$endgroup$
1
$begingroup$
Also Miranda, the language Haskell was based on.
$endgroup$
– kne
9 hours ago
1
$begingroup$
Agda has a very Haskell-like syntax, and is sensitive to both indentation and spaces:(x-y)
is not(x - y)
) even if it might not be "practical" enough for the OP.
$endgroup$
– chi
7 hours ago
1
$begingroup$
Also, CoffeeScript and the hardly-known CokeScript
$endgroup$
– Bergi
6 hours ago
2
$begingroup$
If YAML counts, then I suppose Makefiles must as well
$endgroup$
– Izkata
6 hours ago
1
$begingroup$
There is also PureScript.
$endgroup$
– duplode
4 hours ago
|
show 4 more comments
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "419"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
halloleo is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcs.stackexchange.com%2fquestions%2f109150%2fwhich-other-programming-languages-apart-from-python-and-predecessor-are-out-ther%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
Wikipedia has an extensive list of languages that use the off-side rule1:
- ABC
- Boo
- BuddyScript
- Cobra
- CoffeeScript
- Converge
- Curry
- Elixir (
, do:
blocks)
- Elm
- F# (if
#light "off"
is not specified)
- Genie
- Haskell (only for
where
,let
,do
, orcase ... of
clauses when braces are omitted)
- Inform 7
- ISWIM, the abstract language that introduced the rule
- LiveScript
- Miranda
- Nemerle
- Nim
- occam
- PROMAL
- Python
- Scheme, when using e.g. SRFI 119
- Spin
- XL
1: I've never heard this term before myself.
$endgroup$
add a comment |
$begingroup$
Wikipedia has an extensive list of languages that use the off-side rule1:
- ABC
- Boo
- BuddyScript
- Cobra
- CoffeeScript
- Converge
- Curry
- Elixir (
, do:
blocks)
- Elm
- F# (if
#light "off"
is not specified)
- Genie
- Haskell (only for
where
,let
,do
, orcase ... of
clauses when braces are omitted)
- Inform 7
- ISWIM, the abstract language that introduced the rule
- LiveScript
- Miranda
- Nemerle
- Nim
- occam
- PROMAL
- Python
- Scheme, when using e.g. SRFI 119
- Spin
- XL
1: I've never heard this term before myself.
$endgroup$
add a comment |
$begingroup$
Wikipedia has an extensive list of languages that use the off-side rule1:
- ABC
- Boo
- BuddyScript
- Cobra
- CoffeeScript
- Converge
- Curry
- Elixir (
, do:
blocks)
- Elm
- F# (if
#light "off"
is not specified)
- Genie
- Haskell (only for
where
,let
,do
, orcase ... of
clauses when braces are omitted)
- Inform 7
- ISWIM, the abstract language that introduced the rule
- LiveScript
- Miranda
- Nemerle
- Nim
- occam
- PROMAL
- Python
- Scheme, when using e.g. SRFI 119
- Spin
- XL
1: I've never heard this term before myself.
$endgroup$
Wikipedia has an extensive list of languages that use the off-side rule1:
- ABC
- Boo
- BuddyScript
- Cobra
- CoffeeScript
- Converge
- Curry
- Elixir (
, do:
blocks)
- Elm
- F# (if
#light "off"
is not specified)
- Genie
- Haskell (only for
where
,let
,do
, orcase ... of
clauses when braces are omitted)
- Inform 7
- ISWIM, the abstract language that introduced the rule
- LiveScript
- Miranda
- Nemerle
- Nim
- occam
- PROMAL
- Python
- Scheme, when using e.g. SRFI 119
- Spin
- XL
1: I've never heard this term before myself.
answered 6 hours ago
BergiBergi
435210
435210
add a comment |
add a comment |
$begingroup$
There are: Elm, Haskell, its predecessor Miranda and its predecessor ISWIM,
YAML where spaces are crucial for syntax and tabs are forbidden, OCCAM, Coffee script and Cokescript both are language to language compilers with JavaScript as target and esoteric Whitespaces.
There is also Agda - interactive theorem prover, which is probably not what you had in mind, but its lexer is very sensitive to white-space.
Makefile, which gathers targets with tab-based intends.
$endgroup$
1
$begingroup$
Also Miranda, the language Haskell was based on.
$endgroup$
– kne
9 hours ago
1
$begingroup$
Agda has a very Haskell-like syntax, and is sensitive to both indentation and spaces:(x-y)
is not(x - y)
) even if it might not be "practical" enough for the OP.
$endgroup$
– chi
7 hours ago
1
$begingroup$
Also, CoffeeScript and the hardly-known CokeScript
$endgroup$
– Bergi
6 hours ago
2
$begingroup$
If YAML counts, then I suppose Makefiles must as well
$endgroup$
– Izkata
6 hours ago
1
$begingroup$
There is also PureScript.
$endgroup$
– duplode
4 hours ago
|
show 4 more comments
$begingroup$
There are: Elm, Haskell, its predecessor Miranda and its predecessor ISWIM,
YAML where spaces are crucial for syntax and tabs are forbidden, OCCAM, Coffee script and Cokescript both are language to language compilers with JavaScript as target and esoteric Whitespaces.
There is also Agda - interactive theorem prover, which is probably not what you had in mind, but its lexer is very sensitive to white-space.
Makefile, which gathers targets with tab-based intends.
$endgroup$
1
$begingroup$
Also Miranda, the language Haskell was based on.
$endgroup$
– kne
9 hours ago
1
$begingroup$
Agda has a very Haskell-like syntax, and is sensitive to both indentation and spaces:(x-y)
is not(x - y)
) even if it might not be "practical" enough for the OP.
$endgroup$
– chi
7 hours ago
1
$begingroup$
Also, CoffeeScript and the hardly-known CokeScript
$endgroup$
– Bergi
6 hours ago
2
$begingroup$
If YAML counts, then I suppose Makefiles must as well
$endgroup$
– Izkata
6 hours ago
1
$begingroup$
There is also PureScript.
$endgroup$
– duplode
4 hours ago
|
show 4 more comments
$begingroup$
There are: Elm, Haskell, its predecessor Miranda and its predecessor ISWIM,
YAML where spaces are crucial for syntax and tabs are forbidden, OCCAM, Coffee script and Cokescript both are language to language compilers with JavaScript as target and esoteric Whitespaces.
There is also Agda - interactive theorem prover, which is probably not what you had in mind, but its lexer is very sensitive to white-space.
Makefile, which gathers targets with tab-based intends.
$endgroup$
There are: Elm, Haskell, its predecessor Miranda and its predecessor ISWIM,
YAML where spaces are crucial for syntax and tabs are forbidden, OCCAM, Coffee script and Cokescript both are language to language compilers with JavaScript as target and esoteric Whitespaces.
There is also Agda - interactive theorem prover, which is probably not what you had in mind, but its lexer is very sensitive to white-space.
Makefile, which gathers targets with tab-based intends.
edited 6 hours ago
answered 9 hours ago
EvilEvil
8,34242446
8,34242446
1
$begingroup$
Also Miranda, the language Haskell was based on.
$endgroup$
– kne
9 hours ago
1
$begingroup$
Agda has a very Haskell-like syntax, and is sensitive to both indentation and spaces:(x-y)
is not(x - y)
) even if it might not be "practical" enough for the OP.
$endgroup$
– chi
7 hours ago
1
$begingroup$
Also, CoffeeScript and the hardly-known CokeScript
$endgroup$
– Bergi
6 hours ago
2
$begingroup$
If YAML counts, then I suppose Makefiles must as well
$endgroup$
– Izkata
6 hours ago
1
$begingroup$
There is also PureScript.
$endgroup$
– duplode
4 hours ago
|
show 4 more comments
1
$begingroup$
Also Miranda, the language Haskell was based on.
$endgroup$
– kne
9 hours ago
1
$begingroup$
Agda has a very Haskell-like syntax, and is sensitive to both indentation and spaces:(x-y)
is not(x - y)
) even if it might not be "practical" enough for the OP.
$endgroup$
– chi
7 hours ago
1
$begingroup$
Also, CoffeeScript and the hardly-known CokeScript
$endgroup$
– Bergi
6 hours ago
2
$begingroup$
If YAML counts, then I suppose Makefiles must as well
$endgroup$
– Izkata
6 hours ago
1
$begingroup$
There is also PureScript.
$endgroup$
– duplode
4 hours ago
1
1
$begingroup$
Also Miranda, the language Haskell was based on.
$endgroup$
– kne
9 hours ago
$begingroup$
Also Miranda, the language Haskell was based on.
$endgroup$
– kne
9 hours ago
1
1
$begingroup$
Agda has a very Haskell-like syntax, and is sensitive to both indentation and spaces:
(x-y)
is not (x - y)
) even if it might not be "practical" enough for the OP.$endgroup$
– chi
7 hours ago
$begingroup$
Agda has a very Haskell-like syntax, and is sensitive to both indentation and spaces:
(x-y)
is not (x - y)
) even if it might not be "practical" enough for the OP.$endgroup$
– chi
7 hours ago
1
1
$begingroup$
Also, CoffeeScript and the hardly-known CokeScript
$endgroup$
– Bergi
6 hours ago
$begingroup$
Also, CoffeeScript and the hardly-known CokeScript
$endgroup$
– Bergi
6 hours ago
2
2
$begingroup$
If YAML counts, then I suppose Makefiles must as well
$endgroup$
– Izkata
6 hours ago
$begingroup$
If YAML counts, then I suppose Makefiles must as well
$endgroup$
– Izkata
6 hours ago
1
1
$begingroup$
There is also PureScript.
$endgroup$
– duplode
4 hours ago
$begingroup$
There is also PureScript.
$endgroup$
– duplode
4 hours ago
|
show 4 more comments
halloleo is a new contributor. Be nice, and check out our Code of Conduct.
halloleo is a new contributor. Be nice, and check out our Code of Conduct.
halloleo is a new contributor. Be nice, and check out our Code of Conduct.
halloleo is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Computer Science Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcs.stackexchange.com%2fquestions%2f109150%2fwhich-other-programming-languages-apart-from-python-and-predecessor-are-out-ther%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
3
$begingroup$
I don't think "please give me a list of programming languages with feature X" is a computer science question.
$endgroup$
– David Richerby
5 hours ago
$begingroup$
Honestly, I would just replace the word "predecessor" with "ABC." You only mean the one specific language by it, and that ABC inspired Python's whitespace rules is probably not widely known.
$endgroup$
– jpmc26
5 hours ago
$begingroup$
Why, there's the Whitespace language itself that requires proper indentation for it's core method of expression.
$endgroup$
– penguin359
2 hours ago
$begingroup$
Long-form YAML is probably worth mentioning even though it's not a programming language in the strictest sense, as it's probably one of the next most likely languages with this feature for someone to encounter after Python.
$endgroup$
– Austin Hemmelgarn
1 hour ago