immutable-ext icon indicating copy to clipboard operation
immutable-ext copied to clipboard

Ergonomics question

Open StevenLangbroek opened this issue 6 years ago • 0 comments

I have a DX question: should people import from immutable-ext, or use it as a "polyfill" sort of?

index:

import 'immutable-ext';

import Application from './Application';

Application.start();

Application:

import Task from 'folktale/concurrency/task';
import { Map } from 'immutable';

Map({ thing: 'value' }).traverse(Task.of, x => Http.get(x))

Given the wide range of experience and variable value this adds based on what people work on (not everybody uses immutablejs to the same extent in our applications), I feel like asking everybody to import List and Map from immutable-ext, but the rest from immutablejs might annoying to ask, and one of those nits during code review that are going to make me extremely disliked :D. Thoughts?

StevenLangbroek avatar Feb 10 '19 21:02 StevenLangbroek