What about if EiffelStudio displays this information when you mouse
over the caller?
The IntelliJ solution. It's very useful.
--
You received this message because you are subscribed to the Google Groups "Eiffel Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to eiffel-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/eiffel-users/786b699c-5b39-dab8-e707-c5023ca1e0dd%40gobosoft.com.
> Also the extra typing required may be a problem for some people.
Furthermose I would not like the variants being mixed all the time
Resolution(witdh: 640, height 480)
Resolution(height 480, witdh: 640)
-- with 3 parameters you would have 6 variants already and with 4 it'll be 24
At work our style guidelines say that we should not use
magic numbers. We should use constant attributes instead.
That way these numbers are not magic anymore. They have
names and comments. And if they are used in multiple
places and their value changes, we just have one place
to update.
I would rather write:
make
-- Run application.
locall_dog: attached like animal_anchor
l_cat: attached like animal_anchor
l_mule: attached like animal_anchor
do
create animals.make (100)
create l_dog
animals.extend (l_dog)
create l_cat
animals.extend (l_cat)
create l_mule
animals.extend (l_mule)
end
-------- Original Message --------
Subject: Re: [EXT] [eiffel-users] Named Arguments in Caller
From: Larry Rix <lar...@moonshotsoftware.com>
Date: Fri, September 11, 2020 8:58 am
To: Eiffel Users <eiffel...@googlegroups.com>
> Also the extra typing required may be a problem for some people.I love Bertrand's quote on this: "There is no tax on keystrokes."
--
You received this message because you are subscribed to the Google Groups "Eiffel Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to eiffel-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/eiffel-users/11e2884b-00f4-4f90-9c23-68079b4e2fc5n%40googlegroups.com.
Information through mouse hovering in EiffelStudio: yes, very good suggestion.
As to the language extension: I am not convinced of its necessity, but should it be implemented it’s clear it should be the following.
- Alternative to Actual_list, as a new possibility in Actuals: Tagged_actual_list. (In other words either all or no actual argument are tagged.)
- A tagged actual is of the form formal_name: expression where formal_name is the name of the corresponding formal in the declaration. (No sense in giving different names to the same thing, one the formal argument name and the other as tag – would only seed confusion).
- Conventions are the same for tuple expression as for argument lists in calls, i.e. one can write [author: “Tolstoy”, title: “War and Peace”].
-- BM
To view this discussion on the web visit https://groups.google.com/d/msgid/eiffel-users/20200911081215.cf48dd763fcaf5d42559c6c92f6fc53b.57f7e51eee.wbe%40email25.godaddy.com.