Comments (2)
It's possible this would be less of an issue with the idea to skip monomorphization in favor of untyped pointers in code generation. We should avoid introducing new errors for this until it we have a better understanding of what the actual error cases are.
from qsharp.
I disagree - we should still treat ambiguous types as an error. For one, we can't rule out wanting monomorphization in the future.
Other than codegen, ambiguous types also create issues for type classes and bounded polymorphism, which we probably want to add to Q# in the future. If a bounded type parameter is instantiated ambiguously, then there is no way to know which type class instance to use. Since the choice can change the behavior of the program, it means that the program has no meaning, which means the type system has failed.
Ambiguous type errors also aren't "new errors" - the old Q# compiler disallowed ambiguous types, too. And although the two potential problems above are both future problems only, relaxing the restrictions now and then adding them back later is a lot harder (in terms of breaking changes) than just keeping the errors in.
from qsharp.
Related Issues (20)
- Make `set` keyword optional and include lint to suggest avoiding it.
- Q# Structs
- Surface a warning or error if `src/` does not contain any `.qs` files as direct children
- User experience improvements for QIR generation
- When Q# program fails in "Run" or "Debug" mode, circuit panel shows gibberish error
- RCA check reports error only on entry point rather than also on the line generating the required capability
- Notebook cells running `qsharp` calls always report 0.0s execution time
- Playground Tutorial and Documentation links don't work when combined with "Get link" button. HOT 1
- Update syntax highlighting for all of the syntax change PRs before the features get announced
- Error persist after the file/project is closed
- `internal` and attributes allowed on items in local scopes
- Phantom "entry point not found" error in the Playground
- RCA: Allow updates to mutable variables within a dynamic scope if the variable is also defined within that scope
- Skipping top-level namespace in single file can produce errors if the file isn't saved or has non-Ident chars
- [FollowUp] NeedlessOperation lint cleanup in samples not in list
- Hack around recursive operations calls HOT 1
- [FollowUp] Quick fix for `NeedlessOperation` lint
- Bitwise XOR and PowI in new Q#? HOT 1
- Migrate Nonlocal Games katas to quantum.microsoft.com
- Combining `@Config(Base)` with other options behaves unexpectedly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qsharp.