Sudo for life

Functional programming: ideas and concerns.

Showing posts with label View Bound. Show all posts
Showing posts with label View Bound. Show all posts

Sunday, 3 June 2012

Scala: View Bound and Context Bounds

View Bound


A view bound is Scala's mechanism to enable the use of some type A as if it were some type T (Real type). The typical syntax is this:

    def func[A <% T](a: A) = a.methodFromT
Read more »
Posted by Stas Shevchenko at 03:20 2 comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: Context Bound, Scala, View Bound
Older Posts Home
Subscribe to: Posts (Atom)

Blog Archive

  • ▼  2026 (3)
    • ▼  September (3)
      • [3 of 3] I benchmarked five Scala libraries. Which...
      • [2 of 3] Blocking I/O made Kyo 30x slower. Then I ...
      • [1 of 3 ]Kyo vs cats-effect: promising numbers and...
  • ►  2019 (2)
    • ►  February (2)
  • ►  2018 (20)
    • ►  December (4)
    • ►  November (1)
    • ►  October (4)
    • ►  September (4)
    • ►  August (3)
    • ►  July (4)
  • ►  2017 (1)
    • ►  May (1)
  • ►  2013 (6)
    • ►  October (1)
    • ►  March (5)
  • ►  2012 (26)
    • ►  July (1)
    • ►  June (20)
    • ►  May (5)

About Me

My photo
Stas Shevchenko
View my complete profile
Stas Shevchenko. Simple theme. Theme images by gaffera. Powered by Blogger.