Recent

Author Topic: I do not like ^  (Read 16716 times)

anis2505

  • Full Member
  • ***
  • Posts: 201
Re: I do not like ^
« Reply #15 on: November 17, 2012, 04:56:19 pm »
For someone like me coming from the Curly Brackets World If I have to choose the ^ symbol and the PtrtoVal I would choose ^ which BTW I don't like it.

Quote
You can tell a person is integrated into a programming language when he starts making suggestion about how it should be changed.
You can tell a person has been using the language forever when he says to people making thos suggestions that there's a good reason why the original way was chosen.

Just joking

It's a game of power:

Lazarus/FreePascal native users vs Delphi native users vs C and it's descendant native users.

regards.
« Last Edit: November 17, 2012, 08:42:02 pm by anis2505 »
Dear Confucius you said {A picture is worth a thousand words}
I say {a good example is worth a thousand words}

eny

  • Hero Member
  • *****
  • Posts: 1634
Re: I do not like ^
« Reply #16 on: November 17, 2012, 06:07:12 pm »
Lets get rid of all these annoying symbols and tokens:

Code: Pascal  [Select][+][-]
  1.   a = b plus  c;
  2.   a = b minus c;
  3.   a = b times c;
  4.   a = b divided by c;
All posts based on: Win10 (Win64); Lazarus 2.0.10 'stable' (x64) unless specified otherwise...

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: I do not like ^
« Reply #17 on: November 17, 2012, 06:09:10 pm »
Or Java style:
Code: [Select]
  a = b.plus(c);
  a = b.minus(c);
  a = b.times(c);
  a = b.dividedby(c);
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

BeniBela

  • Hero Member
  • *****
  • Posts: 905
    • homepage
Re: I do not like ^
« Reply #18 on: November 17, 2012, 06:31:52 pm »
Read this, Niklaus Wirth never invented Pascal with caret as the pointer dereference operator, it's our current keyboard that doesn't have the required symbol.

But now fpc supports unicode  files.

So let us change it to:

Code: [Select]
var x: ↑word;

Strangel,y I couldn't find the intended symbol for @ in that pdf

Or Java style:
Code: [Select]
  a = b.plus(c);
  a = b.minus(c);
  a = b.times(c);
  a = b.dividedby(c);

With the ability to throw a null pointer exception on every operator usage

Fred vS

  • Hero Member
  • *****
  • Posts: 3158
    • StrumPract is the musicians best friend
Re: I do not like ^
« Reply #19 on: November 17, 2012, 07:11:53 pm »
@ Eny

Quote
  a = b plus  c;
  a = b minus c;
  a = b times c;
  a = b divided by c;

No, no, no , it should be : in Pascal-Esperanto (why use English ?)

Quote
  a egala b pli c;
  a egala b malpli c;
  a egala b tempo c;
  a egala b dividita c;

[edit] Or, better

Quote
  a egala b pli c  punktokomo
  a egala b malpli c punktokomo
  a egala b tempo c punktokomo
  a egala b dividita c punktokomo


« Last Edit: November 17, 2012, 07:32:09 pm by Fred vS »
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

anis2505

  • Full Member
  • ***
  • Posts: 201
Re: I do not like ^
« Reply #20 on: November 17, 2012, 09:06:05 pm »
Or windev style

Windev english Wlang
one variable
Code: [Select]
X is an integer
multiple variables
Code: [Select]
X, y are integers

Windev french Wlang
one variable
Code: [Select]
X est un entier

multiple variable
Code: [Select]
X, y sont des entiers

can you believe this. it's a nightmare >:D
« Last Edit: November 17, 2012, 09:08:59 pm by anis2505 »
Dear Confucius you said {A picture is worth a thousand words}
I say {a good example is worth a thousand words}

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11383
  • FPC developer.
Re: I do not like ^
« Reply #21 on: November 17, 2012, 11:24:12 pm »
Lets get rid of all these annoying symbols and tokens:

Code: Pascal  [Select][+][-]
  1.   a = b plus  c;
  2.   a = b minus c;
  3.   a = b times c;
  4.   a = b divided by c;

and don't forget  that - has two meanings:

Code: Pascal  [Select][+][-]
  1.   a := minus a;
  2.  

The ambiguity can be finally lifted!

Code: Pascal  [Select][+][-]
  1.   a:= unaryminus a;
  2.  


Leledumbo

  • Hero Member
  • *****
  • Posts: 8746
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: I do not like ^
« Reply #22 on: November 18, 2012, 12:12:45 am »
Quote
Strangel,y I couldn't find the intended symbol for @ in that pdf
There's no address of operator in original Pascal, I don't really remember when it was added, UCSD maybe?

greatUnknown

  • New Member
  • *
  • Posts: 19
Re: I do not like ^
« Reply #23 on: November 18, 2012, 02:35:43 am »
Looks like this thread is calling for a return to the original Cobol.

cst_zf

  • New Member
  • *
  • Posts: 14
Re: I do not like ^
« Reply #24 on: December 27, 2012, 07:44:06 am »
mode delphi will help a lot.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11383
  • FPC developer.
Re: I do not like ^
« Reply #25 on: December 27, 2012, 03:09:43 pm »
Quote
Strangel,y I couldn't find the intended symbol for @ in that pdf
There's no address of operator in original Pascal, I don't really remember when it was added, UCSD maybe?

I think later in TP.

UCSD was a VM, (Java's was later modeled after it), and fairly "safe" (in the Java/.NET sense) and  not terribly strong in random pointer access.

 

eny

  • Hero Member
  • *****
  • Posts: 1634
Re: I do not like ^
« Reply #26 on: December 27, 2012, 03:21:47 pm »
I think later in TP.
For TP it was introduced with version 4.0
It is in my TP 4.0 manual, not in my TP 3.0 manual  :D
All posts based on: Win10 (Win64); Lazarus 2.0.10 'stable' (x64) unless specified otherwise...

 

TinyPortal © 2005-2018