nathsou / poy Goto Github PK
View Code? Open in Web Editor NEWProgramming language targeting JavaScript with Type Rewriting
Programming language targeting JavaScript with Type Rewriting
This kind of requires to make some methods public, but benefits outweigh the useless private declaration imo
import { inferFunc, inferLet, inferStmt } from './infer.stmt.js'
import { inferDecl } from './infer.decl.js'
//...
export class TypeEnv {
//...
inferDecl = inferDecl
inferExpr = inferExpr
inferStmt = inferStmt
inferLet = inferLet
inferFunc = inferFunc
export function inferExpr(this: TypeEnv, expr: Expr): Type {
Along with vscode's ability to nest files
"explorer.fileNesting.patterns": {
"*.ts": "$(capture).js, $(capture).d.ts.map, $(capture).*.ts",
Overall this may give a better dev experience
At first I had the impression that most editors supported the editorconfig file by default, unfortunately that's not the case. For instance, vscode requires an extension to support editorconfig.
Prettier is great but it is as they say "opinionated" and unfortunately not very customizable.
Personally I use eslint stylistic with eslint + import + typescript plugins, which allows a more fine-tuned control over the style while still providing all the warnings and error-checking.
It takes time to setup a proper config matching prettier, so here's mine if you're interested:
https://gist.github.com/Xerios/efa3a230629d92a537efb866b24f7987
Otherwise if you don't want to mess with formatting, you can simply remove editorconfig and keep prettier config
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.