-
To allow for type refinement to be abstracted into functions:
```ts
function isNumber(n: unknown): n is number {
if (typeof n === 'number' && !isNaN(n)) return true
return false
}
```
[…
-
Would it possible (and would it make sense) to add inference for pattern matching?
For example:
```js
function update(state, action) {
switch (action.type) {
case "INCREMENT":
re…
-
The type inference doesn't seem to work when a method returns an instance of the class whose type parameter depends on the method's type parameters. E.g:
```typescript
class Functor {
map(f : T…
-
```ts
function le(a, b) {
return a
-
-
Ler: https://plato.stanford.edu/entries/marcus-aurelius/
Livro Meditações
-
It would be great for users coming from typescript to be able to write the following:
```ts
type ObjectType = {
key?: string
}
const test: ObjectType = {};
```
Thanks.
-
What's left:
- [ ] add timestamps
- [ ] make it easy to find from rholang.github.io
- [x] We ran the session Sep 13
- [x] recording: https://www.youtube.com/watch?v=4GN8dTDaDJI&feature…
-
# 博客从 hexo 迁移到 hugo - 子龙山人的技术博客
为什么又迁移博客 熟悉我的朋友可能会发现,我几乎每隔一段时间都会换一个博客平台 😂
从最早的Wordpress到Octopress,再到Hexo,最后到如今的Hugo,博客没写多少,博客平台却折腾不少。
每一次折腾完后,我都会写下一篇类似的文章,讲我的迁移过程,而且似乎每次都声称这是最后一次折腾Blog了 😂
因为我自己是个不折不扣…
-
Carving out space for type information, is really just providing space for metadata.
The decorators proposal is already working toward doing that.
Suppose the support for decorators were expanded …