Message Boards Message Boards

0
|
6116 Views
|
6 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Remove brackets from Mathematica syntax

Posted 9 years ago

I've worked with Python quite a bit and really like that that's indented, meaning I don't have to bother me with brackets, as in C or C++.

Mathematicas' syntax is absolutely powerful, but often I get stuck in matching brackets cause the expressions are very complex and nested.

I'd like you developers to change the syntax and make it "bracket-free" as much as possible, or at least introduce automatic indentation when needed.

I suggest to look at Python syntax. More, it'd be useful if you simplified function template selection and removed square brackets for built-in functions. Ex. Cos[x] becomes Cos x , and its being alone in its line cuts off all the ambiguities.

Hope it helps. Cheers and good job, I really love your software!

POSTED BY: Pistullo Latorre
6 Replies

space mean multiplication. making the change you want would probably require rewriting hundreds of thousands of lines of code.

POSTED BY: Frank Kampas

Yes, that's sadly true. What a pity.

POSTED BY: Pistullo Latorre
POSTED BY: Pistullo Latorre
POSTED BY: S M Blinder

Square brackets [ ] are an integral and unavoidable part of Mathematica code. You can often use @ in an alternative form in place of brackets. Try for example

In[1]:= Simplify@x + 2 x

Out[1]= 3 x
POSTED BY: S M Blinder
POSTED BY: Frank Kampas
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract