# Why does RemoteChannel have few constructors.

**URL:** https://discourse.julialang.org/t/why-does-remotechannel-have-few-constructors/15502
**Category:** Julia at Scale
**Created:** [September 26, 2018, 7:56am UTC](https://discourse.julialang.org/t/why-does-remotechannel-have-few-constructors/15502 "2018-09-26T07:56:06Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![YonghyunRyu](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yonghyunryu/32/6203_2.png) [@YonghyunRyu](https://discourse.julialang.org/u/YonghyunRyu)
#### Post date: [September 26, 2018, 7:56am UTC](https://discourse.julialang.org/t/why-does-remotechannel-have-few-constructors/15502/1 "2018-09-26T07:56:06Z")

</div>

The constructor that creates a RemoteChannel with a specific size and type requires a function as the first argument like `RemoteChannel(()->Channel{Int}(10), pid)`.

Using lambda functions as parameters is inconvenient because we have to write a longer code than we only use values.  
Just adding a new constructor could solve this problem. However, no one created this.  
So I guess there must be a reason why people have not implemented it.  
Can anybody tell me the reason or your thought?

---

<div class="post-metadata">

### Author: ![oxinabox](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oxinabox/32/206603_2.png) [@oxinabox](https://discourse.julialang.org/u/oxinabox)
#### Post date: [September 26, 2018, 9:30am UTC](https://discourse.julialang.org/t/why-does-remotechannel-have-few-constructors/15502/2 "2018-09-26T09:30:49Z")

</div>

Weird as it may be,  
remote channels do not have to be backed by `Channels`,  
they could be backed be any subtype of `AbstractChannel`.  
Not all of which have constructors that take the same arguments.

Further to that,  
you don’t always even want to create a new channel at the the same time you create a remote channel,  
E,g, in the wild

[https://github.com/oxinabox/AuthorGenderStudy.jl/blob/dfb20accfdf018cd2e82888a843b30da2634f290/src/load\_data.jl#L7](https://github.com/oxinabox/AuthorGenderStudy.jl/blob/dfb20accfdf018cd2e82888a843b30da2634f290/src/load_data.jl#L7)
