Comments (1)
Currently we have alert
pragmas, which are sufficient for scenarios A and B:
/// @alert unimplemented "don't call me now"
fn important_method(self: MyType) {
}
/// @alert deprecated "deprecated since 0.1.5 and will be removed in 0.2.0, use `refreshed_method()` instead"
fn old_method(self: MyType) {
}
For scenario C, perhaps the build system should be responsible for checking the building target. @lijunchen
The alerts are designed to be configurable. You can turn them off or treat them as compile errors by passing the -alert
flag to the compiler. For example, -alert -unsafe@deprecated
will turn off the unsafe
alerts and treat deprecated
alerts as errors.
The build system, moon, will support these configuration options in moon.pkg.json
and moon.mod.json
soon, so stay tuned!
from core.
Related Issues (20)
- sorted_map based on AVL tree/RB tree
- immut/hashset
- impl Eq,Debug,Show for Map
- "second" should be "first" here
- Compiler generates "(result i32)" for host functions returning "-> Unit" HOT 3
- about arr.reverse return value && doc in CONTRIBUTING.md Usage. HOT 2
- A single Random state HOT 2
- Feature Request: Ability to change `_start` to `_initialize` HOT 5
- proposal: use builtin map in JSON
- add Array::concat HOT 1
- Array::deep_clone is not appropriate
- JSON parser should have failed
- Proposal: Modify FixedArray::from_array to Accept Array as Parameter
- add Iter::range utils
- add tuple hash support
- Cannot test non pub functions in xxx.test.mbt in same package
- PRNG improvement
- invalid pragma location reporting is confusing HOT 1
- GLIBC issue
- [proposal] make name of new/make function consistent
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 core.