V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  kingwl  ›  全部回复第 1 页 / 共 10 页
回复总数  189
1  2  3  4  5  6  7  8  9  10  
"小" 意味着岗位不多,需求少
"精" 意味着要求高,门槛高
2021-07-30 15:41:25 +08:00
回复了 Imindzzz 创建的主题 TypeScript 前端同学,你到现在还没用 typescript 原因是什么?
@libook

是,但不完全是。例如:

```ts

/**
* @template {string} T
* @param {T} x
* @return {T}
*/
function strindId(x) {
return x;
}

const a = strindId(1); // Argument of type 'number' is not assignable to parameter of type 'string'.
const b = strindId("");

```

除非有人 /公司另外实现了一个 TS typechecker, 否则最后还是交给了 TS 。。。
2021-07-29 11:50:47 +08:00
回复了 Imindzzz 创建的主题 TypeScript 前端同学,你到现在还没用 typescript 原因是什么?
@libook 你猜你这三个截图的功能在 VSCode 里面是谁做的。。。
2021-05-11 14:20:40 +08:00
回复了 myCupOfTea 创建的主题 TypeScript 问一个 ts 类型定义的问题 关于 any 与 optional type
`
interface Resp<T = unknown> {
data?: T
}
const res :Resp = {}
const abc = res.data.abc
`
2021-05-06 16:01:15 +08:00
回复了 BoringTu 创建的主题 JavaScript 为什么你们要选择 TypeScript?
> People percieve TypeScript as "just the compiler", but it's a better mental model to think of TypeScript as two separate entities: The compiler (aka syntax) and language tools (aka editor integration) - by treating these two systems as separate you have two important perspectives to understand decisions get made.

https://orta.io/notes/js/why-typescript
2021-05-06 15:34:59 +08:00
回复了 BoringTu 创建的主题 JavaScript 为什么你们要选择 TypeScript?
> 本身弱类型为优势的 JavaScript (并不是优势)

> 套了一层强类型的壳的这步操作我就看不懂了,这是图啥呢?(并不是强类型)

> 这样代码写着不难受么?那你直接用 Java 写然后编译成 JavaScript 不好么?(不难受,不好,Java 也不是强类型)
2021-04-27 13:55:07 +08:00
回复了 3dwelcome 创建的主题 前端开发 前端为什么不加个#define 语句呢?
2021-04-27 13:49:44 +08:00
回复了 3dwelcome 创建的主题 前端开发 前端为什么不加个#define 语句呢?
2021-04-20 12:09:23 +08:00
回复了 ghs55kai 创建的主题 生活 乳胶枕好用吗。
特拉蕾的比较软
2021-04-15 13:24:28 +08:00
回复了 ch2 创建的主题 计算机 编译原理算不算计算机最没有功利价值的一门专业必修课?
有的,比如在之前的某公司实现了一套与或非嵌套加业务逻辑的 DSL.
大多数情况下 prettier 即可,除非是 react deps list 这种
2021-03-17 16:20:00 +08:00
回复了 manami 创建的主题 分享创造 大家快来康康我做的 ACG 论坛
梦回 2008
table
能用就用。
2021-03-11 13:16:56 +08:00
回复了 JJstyle 创建的主题 生活 『迫于买房』有没有更强👍🏻一点的楼房采光计算器
@waylybaye 是时候开始 熊猫晒太阳 了
For fun. Not for star.
1  2  3  4  5  6  7  8  9  10  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   998 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 36ms · UTC 19:52 · PVG 03:52 · LAX 12:52 · JFK 15:52
Developed with CodeLauncher
♥ Do have faith in what you're doing.