Don't like repeating yourself ? Then try this !

11 views
Skip to first unread message

Finnian Reilly

unread,
Apr 22, 2025, 8:11:16 AMApr 22
to Eiffel Users
Sometimes writing repetitive code is unavoidable in Eiffel. But help is at hand.

Any one else tried this ?
inspect-completion.png
I can imagine some future version of EiffelStudio might feature some AI driven code assistance.

Finnian Reilly

unread,
Apr 22, 2025, 8:18:32 AMApr 22
to Eiffel Users
And I gave a follow up instruction
inspect-completion.png

I got precisely what I asked for, and the code compiled straight away. Wow !
I saved so much time, I had time to make this post :-)

Finnian Reilly

unread,
Apr 22, 2025, 8:27:35 AMApr 22
to Eiffel Users
In case anyone is wondering what the code I am writing is for:
code-fragment.png

Finnian Reilly

unread,
Apr 22, 2025, 8:34:48 AMApr 22
to Eiffel Users
There is an obvious mistake* in the copy_fields_to code example which I will be correcting. This is literally work in progress !
(the field index in other object might not necessarily be the same as in the source object.) 
Reply all
Reply to author
Forward
0 new messages