Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 Inlay parameter name hints
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Skylonxe
Starting Member

1 Posts

Posted - Apr 13 2020 :  2:51:19 PM  Show Profile  Reply with Quote
I am really missing this when compared to Resharper.


https://www.jetbrains.com/help/resharper/Inline_Parameter_Name_Hints.html

I come from Unreal Engine project and Epic Games standards encourage this style:

// Old style
Trigger(TEXT("Soldier"), 5, true);.

// New style
const FName ObjectName                = TEXT("Soldier");
const float CooldownInSeconds         = 5;
const bool bVulnerableDuringCooldown  = true;
Trigger(ObjectName, CooldownInSeconds, bVulnerableDuringCooldown);

https://docs.unrealengine.com/en-US/Programming/Development/CodingStandard/index.html

While this look like it makes code more readable it also clutters the code and expands itís length multiple times. I think this is ugly workaround for missing named parameters in C++. It is something what should be solved either by C++ standard (C++20 has partial solution) or by IDE (Resharper plugin already supports it). Writing it using local parameters would create code clutter which would be left there even after official support from C++ or IDE.
Personally, I think that even including named parameters into language, like other languages do, is not good solution as it encourages writing same code (variable name) twice.

It would awesome if Visual Assist supported it!

feline
Whole Tomato Software

United Kingdom
16647 Posts

Posted - Apr 14 2020 :  10:44:45 AM  Show Profile  Reply with Quote
We are considering adding a feature like this at some point:

case=141699

zen is the art of being at one with the two'ness
Go to Top of Page

KeyC0de
New Member

Greece
7 Posts

Posted - Apr 23 2020 :  1:07:48 PM  Show Profile  Reply with Quote
Indeed, this is so much needed. Actually I have already posted a feature request about this on this forum here: https://forums.wholetomato.com/forum/topic.asp?TOPIC_ID=16750
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
16647 Posts

Posted - Apr 24 2020 :  07:11:35 AM  Show Profile  Reply with Quote
It is certainly a sensible idea, but since we have to work around behind the IDE's back, it will take time to see how easily and well we can do this.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2019 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000