Sorry for pre-posting but it is difficult to post-reply to an HTML text.

(Do we need HTML for emails???)

 

Anyway, somehow it seems to me this feature is a solution looking for

a problem. For a long time the good (not necessarily liked) principle was

to add a feature (and I like features!)  when it is demanded/useful, not

simply nice-to-have. Well I don't think this has ever been seriously

requested in any vim polls-for-features.

Well, it's here, hallelujah.

 

But I am very uneasy with that leading ampersand. That's so different

from any usual writing so it's looks somehow bizarre to me.

 

There are human languages where a floating is not necessarily

written with a dot but with a comma, like this '1,71'. Not very

transparent to those not used to it but it can be done. I had

to learn the dot notation coming from the comma, took me short

while before becoming natural, so I supposed it shouldn't be

a big problem going the other way around.

 

So 'let a=1,72+1,98' (no apostrophes of course) may not look so obscene

after a while to anybody. Even Windows and Linux OS/applications

 can be configured to print floating with commas by default, can't they?

 

How would this change complicate the vim parser? Have I overlooked

some obvious reason why this couldn't be considered?

 

Cheers,

 

---Zdenek

 

 

 

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf
Of Yakov Lerner
Sent: 14 April 2008 07:15
To: [email protected]; Bram Moolenaar
Subject: Re: Updated floating point patch

 

On Sat, Apr 12, 2008 at 4:58 PM, Bram Moolenaar <[EMAIL PROTECTED]> wrote:

Here is an update for the floating point patch.  The 'g' argument for
printf() was implemented and a few bug fixes.

This is to be applied to the original source code, without the older
floating point patch.

I would still like feedback on the format of floating point numbers:

       &123.456
       &1.23e-3


When left operand is number, can you require 
space around '.' concatenation operator, otherwise '.'
is floating point ? Who needs concatenation of two constants anyway ?

        123.456 " floating number
        123 . 456 " concatenation of "123" and "456"
        123. 456 " floating number 123. concatenated with "456"
        123 .456 " integer 123, space, floating .456
        123.e2     " floating number
        123 . e2 "concatenation of number and variable
        123. e2 "floating number, space, variable e2
        123 .e2 "concatenation
?
Maybe backward-compatibility option for that ? (treat 123.456 as concat vs
floating ?)

Yakov
      


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist. 
For more information, visit http://www.vim.org/maillist.php 
-~----------~----~----~----~------~----~------~--~---

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Raspunde prin e-mail lui