question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow reserved identifiers as names in named arguments.

See original GitHub issue

These were introduced in C# 4, looking like so:

resultNode = SimplificationHelpers.CopyAnnotations(from: node, to: resultNode);

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
damiengcommented, Sep 23, 2020

So we do actually support named parameters although we don’t have decent corpus coverage. The problem on this line isn’t actually the lack of named parameter support it’s the presence of the argument name from which is a contextually-reserved word in C# used by the LINQ comprehension syntax such as select a from b into c.

I’ll investigate what we can do about that.

0reactions
patricktcommented, Sep 23, 2020

Aha, that was the issue—changed the title to reflect this. Thanks, @damieng!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Identifiers - cppreference.com
An identifier can be used to name objects, references, functions, enumerators, types, class members, namespaces, templates, template specializations, parameter ...
Read more >
Reserved Names (The GNU C Library)
All other library names are reserved if your program explicitly includes the header file that defines or declares them.
Read more >
Reserved words as names or identifiers - java - Stack Overflow
public class HelloWorld { public static void main(String[] args) { HelloWorld.nеw(); } ... As a result: no, you can't use the reserved words...
Read more >
Identifiers - IBM
Identifiers that begin with a single underscore are reserved in the global namespace. C++ only ends. Although the names of system calls and...
Read more >
Python Identifiers - Rules, Examples, Best Practices - AskPython
They are used to specify the names of variables, functions, class, module, etc. Identifier rules ... You can't use reserved keywords as an...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found