101 reputation
3
bio website martin.krischik.com
location Berne, Switzerland
age 50
visits member for 3 years, 11 months
seen Nov 5 at 15:25

Oct
23
comment What do you wish language designers paid attention to?
@supercat Ada got that as well.
Feb
20
comment What do you wish language designers paid attention to?
If you are an Egyptologist you oblivious need type Egyptian_Year is -9999 .. 300;. In my experience you can find useful bounds for integers most of the time. In this respect you should consider type Scrolls_Found is array Egyptian_Year of Natural; You can't / shouldn't have an unbounded type as array index. It's just an attack vector for hacker. BTW: Ada allows for range bounds to be calculated at run time.
Feb
15
comment What do you wish language designers paid attention to?
What I thought where types like in Ada where you can just say type Date_Of_Month is 1 .. 31; and leave decisions like 16 or 32 bit to the optimizer. But more importantly assigning 32 or 0 or -5 to a variable of the type gives you an RANGE_ERROR.
Jan
10
comment What do you wish language designers paid attention to?
@Gary Willoughby: Design without long-planning does not work either. committee work tend to be over-desinged in Version 1, non-committee work tend to be under-designed from Version 3 onward. The only advantage non-committee work hat is a positive reception in the beginning. On the other hand Ada - the archetype of committee work - turned into a very nice language with Version 3 (Ada 2005).
Jan
10
comment What do you wish language designers paid attention to?
@Kugel: What else but a compiler feature is assert? And Unit test won't check the code in production. And not checking in production is like taking the live boats off after the maiden voyage. To save fuel and make the ship faster.
Jan
8
comment What do you wish language designers paid attention to?
Forgot to mention: Unlike Pascal Ada is a system programming language as well. In can do all the low level stuff C can do and a lot more. And if you are into static analysis and proving then google for SPARK/Ada. Maybe you dream language already exist but you just did not know about it. — @Berin Loritsch: Ada will check the bounds at runtime (with compiler option and pragma to deactivate). Ada also has bounded Strings.
Jan
8
awarded  Commentator
Jan
8
comment What do you wish language designers paid attention to?
@Konrad Rudolph: Am am with you here: better filling words then filling special characters.
Jan
8
comment What do you wish language designers paid attention to?
@Matthieu M. Neither SmallTalk nor FORTH use an excessive amount of special characters. In both languages block structure are implemented using closured. Hence they still have easy to read if then else but they are just not keywords but identifier. Of course you might rightfully ask why it should be easier to learn a language when if then else are identifier instead of keywords. It is not - I am trying to prove the OP wrong.
Jan
6
comment What do you wish language designers paid attention to?
@Berin: Ada already does allow unicode identifier. @Matthieu: but having a real π as identifier is a cool option to have.
Jan
6
comment What do you wish language designers paid attention to?
Scala has tail recursion and is compiled to the JVM. The IBM Java compiler too can do tail recursion — sometimes.
Jan
6
comment What do you wish language designers paid attention to?
Would it not be better to have a language which finds the Bugs at compile time? For example when I use Ada is spend significantly less time in the debugger then when I use C or C++.
Jan
6
comment What do you wish language designers paid attention to?
Sound exactly like what I suggested here: programmers.stackexchange.com/questions/33578/… — both Ada and Pascal can do what you want (Ada even for floating point - i.e. type Degree is range 0.0 .. 360.0). Too bad other languages ignore this important feature. +1 anyway.
Jan
6
comment What do you wish language designers paid attention to?
And another one: FORTH too is a language with no keyword and a language description which fits the back of a postcard. — mind you: does not make FORTH easy to learn.
Jan
6
awarded  Supporter
Jan
6
comment What do you wish language designers paid attention to?
You mean something like ASIS (ISO/IEC 15291:1999 “Ada Semantics Interface Specification”)? ASIS does not cover all you want but quite a lot. I have often wished for something like ASIS for other programming languages. See sigada.org/wg/asiswg for details.
Jan
6
comment What do you wish language designers paid attention to?
Forgot to mention: The SmallTalk syntax also fits the back of a postcard. So it will also fulfils your desire for “small”. Of course most ideas here are already implemented in some language somewhere and most posters here use that languages as positive example instead of making a faulty negative example. I would vote you down if I hat enough reputation. Not because your idea is bad - but for using negative example.
Jan
6
comment What do you wish language designers paid attention to?
The Idea is not new and already implement in then form of SmallTalk which has no keywords at all. So you should have used SmallTalk as positive example for your claim. BTW: If you don't know what the IS is for then you have not understand Ada (did you ever program Ada?): IS separates the procedure declaration from the declaration of local variables and also distinguishes an specification from implementation. Of course you would only notice when comparing specification and implementation of a function to see that the IS makes perfect sense and is not a filler at all.
Jan
5
awarded  Teacher
Jan
5
answered What do you wish language designers paid attention to?