kenichi-asai / ocaml-blockly Goto Github PK
View Code? Open in Web Editor NEWThis project forked from harukamm/ocaml-blockly
OCaml visual programming editor based on Blockly.
License: Apache License 2.0
This project forked from harukamm/ocaml-blockly
OCaml visual programming editor based on Blockly.
License: Apache License 2.0
type a_t = {a : int; b : float}
let b = {a = ?; b = ?}
で、0
を最初の ?
に入れようとすると、ブロックがつーっと流れてしまう。
let f x = 0
let a = ?
で a
のスコープお砂場を開き、f
をお砂場に置くと、型が 'a -> 'b
になってしまっている。(ブロックをつなぐと型推論が動いて正しい型になる。)
let f x = ?
というブロックを出して f
をドラッグして変数を取り出し、それをそのまま捨てると let 文の f
の本体部分の型が f
の型と同じになる。
関連するかも知れない問題として、上の let ブロックで、f
の型は出した直後は型変数になってしまう。その後、他のブロックをつないだりすると正しく関数の型になる。これは、最初から関数の型になってほしい。
let a = ?
let b = ?
let c = a
で b
のスコープお砂場を開き、そこに let c = a
を移動した後 b
の下に戻すと落ちる。
type a_t = {a : int}
let f x = {a = ?}
で、スコープお砂場から ?
には x
を入れられるけど、引数から直接は入れられない。
type a_t = {a : int}
let f x = ?
の場合は、引数からでも入れられる。
type a_t = { a : int; b : float }
let b = ?
で、a_t
から ?
にドラッグすると落ちる。フィールドの型がすべて ?
だと大丈夫。また、スコープお砂場からのドラッグでも大丈夫。
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.