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.

Problems with hash (#)

See original GitHub issue

There are two problems with hash symbol. Both can be reproduced with lens.

  1. Problem with (#) as operator
_Success # res

In code above _Success # parsed as one token, so there is not working “go to defenition” and “type info” shows type of (_Success #).

  1. Problem with OverloadedLabels
a ^. #info . #code

Code above uses generic-lens with OverloadedLabels to access fields of some struct. But if I ask for “type info” on “#” it shows me type of (#) operator in lens and if I ask for type info on another symbol it shows me type of nearest definition of this field.

In both cases extension MagicHash isn’t enabled. In second case OverloadedLabels extension is enabled.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
rikvdkleijcommented, Feb 29, 2020

@Nexmean thanks for becoming a GitHub sponsor!

0reactions
rikvdkleijcommented, May 24, 2020

Please reopen if still an issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Top 75 Hashing Problems
In this post, we will list out few problems that can be solved in elegant fashion using hashing, with significant economy of time...
Read more >
Practice Problems on Hashing
Option (A) and (B) are incorrect as all keys are not inserted in hash table. Option (D) is incorrect as some indexes in...
Read more >
What is Hashing? How Hash Codes Work - with Examples
Introduction to hashing Hashing is designed to solve the problem of needing to efficiently find or store an item in a collection.
Read more >
Risks and Challenges of Password Hashing
Why simple hashing is insecure for storing passwords · Demonstration · Why salted hashes are insecure for storing passwords · The randomness issue....
Read more >
6.5. Hashing — Problem Solving with Algorithms and Data ...
A disadvantage to linear probing is the tendency for clustering; items become clustered in the table. This means that if many collisions occur...
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